//
//  ViewController.swift
//  DFAFilterDemo
//
//  Created by 张福杰 on 2019/10/23.
//  Copyright © 2019 张福杰. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        let dfaFilter = DFAFilter()
        dfaFilter.parseSensitiveWords()
        
        let message = "小明骂小王是个王八蛋，小王骂小明是个王八羔子！"
        let result = dfaFilter.filterSensitiveWords(message, replaceKey: "")
        print(result)

    }


}

